package nciae.db.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import nciae.db.pojo.entity.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    @Select("SELECT state, COUNT(*) AS count FROM project GROUP BY state")
    List<Map<String, Object>> countProjectStatus();



}
